import {
  axios
} from '@/utils/request'
// sota版本列表
function getSotaVersionList (data) {
  return axios({
    url: '/software-service/software/sota/list',
    method: 'get',
    params: data
  })
}
// 新增sota版本
function addSotaVersion (data) {
  return axios({
    url: '/software-service/software/sota',
    method: 'post',
    data
  })
}
// 编辑sota版本
function editsotaVersion (data) {
  return axios({
    url: '/software-service/software/sota/software/version',
    method: 'put',
    data
  })
}
// 删除sota版本
function deleteSotaVersion (data) {
  return axios({
    url: '/software-service/software/sota/software/version',
    method: 'delete',
    data
  })
}
// sota版本详情
function sotaVersionDetail (params) {
  return axios({
    url: '/software-service/software/sota/software/version',
    method: 'get',
    params
  })
}

// 获取软件服务列表

function softwareList (params) {
  return axios({
    url: '/software-service/software/list',
    method: 'get',
    params
  })
}
export default {
  getSotaVersionList,
  addSotaVersion,
  editsotaVersion,
  deleteSotaVersion,
  sotaVersionDetail,
  softwareList
}
